﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Including_ci_cd.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class UserController : ControllerBase
    {
        [HttpGet]
        public string Login(string name,string pwd)
        {
            if(name == "admin" && pwd == "123456")
            {
                return "登录成功";
            }
            else
            {
                return "登录失败";
            }
        }
        [HttpPost]
        public int Add(int a,int b)
        {
            return a + b;
        }
    }
}
